Full source code website bán hàng thương mại điện tử gần giống shopee
468.998 lượt xem;
1 <?
2 echo $_SESSION["session_message"];
3 $_SESSION["session_message"] = "";
4 $MAXPAGE=40;
5 ?>
6 <table height="28" cellSpacing="0" cellPadding="0" width="100%" border="0">
7 <tr align=center>
8 <td class="title" width="100%">Danh bạ doanh nghiệp :
9 </td>
10 </tr>
11 </table>
12 <?
13 switch ($_GET['action'])
14 {
15 case 'del' :
16 $id = $_GET['id'];
17 $pro=GetCompanyInfo($id);
18 if ($pro)
19 {
20 $sql = "delete from job where id='".$id."'";
21 $result = mysql_query($sql,$con);
22 if ($result)
23 {
24 if (file_exists("../".$pro['image'])) unlink("../".$pro['image']);
25 if (file_exists("../".$pro['image_large'])) unlink("../".$pro['image_large']);
26
27 echo "<p align=center class='err'>Đã xóa thành công</p>";
28 }
29 else echo "<p align=center class='err'>Không thể xóa dữ liệu</p>";
30 }
31 break;
32 }
33 ?>
34
35 <?
36 if (isset($_POST['ButDel'])) {
37 $cnt=0;
38 foreach ($_POST['chk'] as $id)
39 {
40 $pro=GetCompanyInfo($id);
41 if ($pro)
42 {
43 @$result = mysql_query("delete from avd where id='".$id."'",$con);
44 if ($result) {
45 $cnt++;
46 if (file_exists("../".$pro['image'])) unlink("../".$pro['image']);
47 if (file_exists("../".$pro['image_large'])) unlink("../".$pro['image_large']);
48
49 }
50 }
51 }
52 echo "<p align=center class='err'>Đã xóa ".$cnt." phần tử</p>";
53 }
54 if (isset($_POST['ButGood'])) {
55 $cnt=0;
56 foreach ($_POST['chk'] as $id)
57 {
58 $pro=GetProductInfo($id);
59 if ($pro)
60 {
61 if (CountRecord("pro_good","products_id=".$pro['products_id'])<=0)
62 {
63 $result = mysql_query("insert into pro_good (products_id,language,pro_dateadded) values ('".$pro['products_id']."','".$pro['language']."',SYSDATE())",$con);
64 if ($result) {
65 $cnt++;
66 }
67 }
68 }
69 }
70 echo "<p align=center class='err'>Đã cập nhật ".$cnt." phần tử</p>";
71 }
72 if (isset($_POST['ButNew'])) {
73 $cnt=0;
74 foreach ($_POST['chk'] as $id)
75 {
76 $pro=GetProductInfo($id);
77 if ($pro)
78 {
79 if (CountRecord("pro_new","products_id=".$pro['products_id'])<=0)
80 {
81 $result = mysql_query("insert into pro_new (products_id,language,pro_dateadded) values ('".$pro['products_id']."','".$pro['language']."',SYSDATE())",$con);
82 if ($result) {
83 $cnt++;
84 }
85 }
86 }
87 }
88 echo "<p align=center class='err'>Đã cập nhật ".$cnt." phần tử</p>";
89 }
90 if (isset($_POST['ButSaleoff'])) {
91 $cnt=0;
92 foreach ($_POST['chk'] as $id)
93 {
94 $pro=GetProductInfo($id);
95 if ($pro)
96 {
97 if (CountRecord("pro_saleoff","products_id=".$pro['products_id'])<=0)
98 {
99 $result = mysql_query("insert into pro_saleoff (products_id,language,pro_dateadded) values ('".$pro['products_id']."','".$pro['language']."',SYSDATE())",$con);
100 if ($result) {
101 $cnt++;
102 }
103 }
104 }
105 }
106 echo "<p align=center class='err'>Đã cập nhật ".$cnt." phần tử</p>";
107 }
108
109 if (isset($_POST['trogia'])) {
110 $cnt=0;
111 foreach ($_POST['chk'] as $id)
112 {
113 $pro=GetProductInfo($id);
114 if ($pro)
115 {
116 @$result = mysql_query("update products set trogia=1 where id='".$id."'",$con);
117 if ($result) {
118 $cnt++;
119
120 }
121 }
122 }
123 echo "<p align=center class='err'>Đã thêm ".$cnt." sản phẩm trợ giá</p>";
124 }
125
126 if (isset($_POST['huytrogia'])) {
127 $cnt=0;
128 foreach ($_POST['chk'] as $id)
129 {
130 $pro=GetProductInfo($id);
131 if ($pro)
132 {
133 @$result = mysql_query("update products set trogia=0 where id='".$id."'",$con);
134 if ($result) {
135 $cnt++;
136
137 }
138 }
139 }
140 echo "<p align=center class='err'>Đã hủy ".$cnt." sản phẩm trợ giá</p>";
141 }
142
143
144
145
146
147 ?>
148
149 <?
150 $page = $_GET["page"];
151 $p=0;
152 if ($page!='') $p=$page;
153 $where="1=1";
154 //if ($_REQUEST['status']!='') $where="products_status=".$_REQUEST['status']." ";
155 if ($_REQUEST['cat']!='') $where="company_cat=".$_REQUEST['cat'];
156 ?>
157 <?
158 function taotrang($total,$link,$nitem,$itemcurrent,$step=10)
159 { global $con;
160 $ret="";
161
162 $param="";
163 $pages=count_page($total,$nitem);
164 if ($itemcurrent>0) $ret.='<a title="Đầu tiên" href="'.$link.'0" class="lslink">[<]</a> ';
165 if ($itemcurrent>1) $ret.='<a title="Về trước" href="'.$link.($itemcurrent-1).'" class="lslink">[<<]</a> ';
166 $from=($itemcurrent-$step>0?$itemcurrent-$step:0);
167 $to=($itemcurrent+$step<$pages?$itemcurrent+$step:$pages);
168 for ($i=$from;$i<$to;$i++)
169 {
170 if ($i!=$itemcurrent) $ret.='<a href="'.$link.$i.'" class="lslink">'.($i+1).'</a> ';
171 else $ret.='<b>'.($i+1).'</b> ';
172 }
173 if (($itemcurrent<$pages-2) && ($pages>1)) $ret.='<a title="Tiếp theo" href="'.$link.($itemcurrent+1).'">[>>]</a> ';
174 if ($itemcurrent<$pages-1) $ret.='<a title="Cuối cùng" href="'.$link.($pages-1).'">[>]</a>';
175 return $ret;
176 }
177
178 $pageindex=taotrang(CountRecord("company",$where),"./?act=company&cat=".$_REQUEST['cat']."&page=",$MAXPAGE,$page);
179 ?>
180
181 <table cellspacing="0" cellpadding="0" width="100%">
182 <? if ($_REQUEST['code']==1) echo '<tr><td colspan="2" align="center" class="err">Đã cập nhật thành công</td></tr>'; ?>
183 <tr>
184 <td class="smallfont">Trang : <? echo $pageindex; ?></td>
185 <td height="30" align="right" class="smallfont">
186 <select size="1" name="ddCat" class="smallfont">
187 <?
188 $ms=GetListCompany(0);
189 echo '<option value="">[Tất cả]</option>';
190 foreach ($ms as $m)
191 if ($m[0]!=$_REQUEST['cat'])
192 echo '<option value="'.$m[0].'">'.$m[1].'</option>';
193 else
194 echo '<option selected value="'.$m[0].'">'.$m[1].'</option>';
195 ?>
196 </select>
197 <input type="button" value="Chuyển" class="button" onclick="window.location='./?act=company&cat='+ddCat.value">
198 </td>
199 </tr>
200 </table>
201 </td>
202 </tr>
203 </table>
204 <table cellspacing="0" cellpadding="0">
205 <tr>
206 <td class="smallfont">Tìm kiếm: </td>
207 <td class="smallfont">
208 <!-- begin tim kiem-->
209 <form name="form_select" method="GET" action="./">
210 <table id="timkiem_home" border="0" id="table21" cellspacing="0" cellpadding="0">
211 <tr>
212 <td style="padding-left:4px;">
213 <select size="1" name="cat_id">
214 <?
215 $ms=GetListCompany(0);
216 echo '<option value="">[Tất cả]</option>';
217 foreach ($ms as $m)
218 if ($m[0]!=$_REQUEST['cat'])
219 echo '<option value="'.$m[0].'">'.$m[1].'</option>';
220 else
221 echo '<option selected value="'.$m[0].'">'.$m[1].'</option>';
222 ?>
223 </select>
224 </td>
225 <td style="padding-left:0px">
226 <input name="keywords" type="text" id="input_timkiem" value="">
227 </td>
228 <td>
229 <input type="hidden" name="act" value="search_company">
230 <input type="hidden" name="company" value="search_company">
231 <input id="button_search" type="submit" name="search" value="Tìm">
232 </td>
233 </tr>
234 </table>
235 </form>
236 <!-- end tim kiem -->
237 </td>
238 </tr>
239 </table>
240 <form method="POST" name="frmList" action="index.php">
241 <input type=hidden name="page" value="<? echo $page; ?>">
242 <table border="1" cellpadding="2" style="border-collapse: collapse" bordercolor="#C9C9C9" width="100%" id="AutoNumber1">
243 <tr>
244 <td align=center nowrap class="title"><input type="checkbox" name="chkall" onclick="chkallClick(this);"></td>
245 <td colspan="2" nowrap class="title"> </td>
246 <td align="center" nowrap class="title"><b>ID</b></td>
247 <td align="center" nowrap class="title"><b>Tên </b></td>
248 <td align="center" nowrap class="title"><b>Người đăng</b></td>
249 <td align="center" nowrap class="title"><b>Danh mục hệ thống</b></td>
250 <td align="center" nowrap class="title"><b>Nơi đăng</b></td>
251 <td align="center" nowrap class="title"><b>Ngày đăng</b></td>
252
253 </tr>
254
255 <?php
256 $sql="select * from company where $where order by id DESC limit ".($p*$MAXPAGE).",".$MAXPAGE;
257 $result=mysql_query($sql,$con);
258 $i=0;
259 while(($row=mysql_fetch_array($result)))
260 {
261 $i++;
262 if ($i%2) $color="#d5d5d5"; else $color="#e5e5e5";
263 $catinfo=GetCatCompanyInfo($row['company_cat']);
264 $cityinfo=GetCityInfo($row['city']);
265 ?>
266
267 <tr>
268 <td align="center" bgcolor="<? echo $color; ?>" class="smallfont">
269 <input type="checkbox" name="chk[]" value="<? echo $row['id']; ?>"></td>
270 <td align="center" bgcolor="<? echo $color; ?>" class="smallfont">
271 <a href="./?act=job_m&cat=<? echo $_REQUEST['cat']; ?>&status=<? echo $_REQUEST['status']; ?>&id=<? echo $row['id']; ?>&page=<? echo $page?>">Sửa</a></td>
272 <td align="center" bgcolor="<? echo $color; ?>" class="smallfont">
273 <a onclick="return confirm('Bạn có chắc chắn muốn xoá ?');" href="./?act=job&action=del&cat=<? echo $_REQUEST['cat']; ?>&status=<? echo $_REQUEST['status']; ?>&id=<? echo $row['id']; ?>">Xoá</a></td>
274 <td bgcolor="<? echo $color; ?>" align="left" align="left" class="smallfont"><? echo $row['id']; ?> </td>
275 <td bgcolor="<? echo $color; ?>" class="smallfont"><a href="../?home=company&act=views&id=<? echo $row['id']; ?>" target="_blank"><? echo $row['name']; ?></a></td>
276 <td bgcolor="<? echo $color; ?>" class="smallfont"><? echo $row['user']; ?> </td>
277 <td bgcolor="<? echo $color; ?>" class="smallfont"><? echo $catinfo['name']; ?> </td>
278 <td bgcolor="<? echo $color; ?>" class="smallfont"><?if($row['city']=='0'){?>TOÀN QUỐC<?}else{?><? echo $cityinfo['name']; ?><?}?> </td>
279 <td bgcolor="<? echo $color; ?>" class="smallfont"><? echo $row['date']; ?> </td>
280
281 </tr>
282 <?
283 }
284 ?>
285 </table>
286 <input type="hidden" name="act" value="company"><table border="0" width="100%" cellspacing="0" cellpadding="0" id="table1">
287 <tr>
288 <td>
289 <input type="submit" value="Xóa Chọn" name="ButDel" onclick="return confirm('Bạn có chắc chắn muốn xoá ?');" class="button"></td>
290 <td align="right">
291 </td>
292 <td align="right">
293
294 </td>
295
296
297 </tr>
298 </table>
299 </form>
300 <script language="JavaScript">
301 function chkallClick(o) {
302 var form = document.frmList;
303 for (var i = 0; i < form.elements.length; i++) {
304 if (form.elements[i].type == "checkbox" && form.elements[i].name!="chkall") {
305 form.elements[i].checked = document.frmList.chkall.checked;
306 }
307 }
308 }
309 </script>
2 echo $_SESSION["session_message"];
3 $_SESSION["session_message"] = "";
4 $MAXPAGE=40;
5 ?>
6 <table height="28" cellSpacing="0" cellPadding="0" width="100%" border="0">
7 <tr align=center>
8 <td class="title" width="100%">Danh bạ doanh nghiệp :
9 </td>
10 </tr>
11 </table>
12 <?
13 switch ($_GET['action'])
14 {
15 case 'del' :
16 $id = $_GET['id'];
17 $pro=GetCompanyInfo($id);
18 if ($pro)
19 {
20 $sql = "delete from job where id='".$id."'";
21 $result = mysql_query($sql,$con);
22 if ($result)
23 {
24 if (file_exists("../".$pro['image'])) unlink("../".$pro['image']);
25 if (file_exists("../".$pro['image_large'])) unlink("../".$pro['image_large']);
26
27 echo "<p align=center class='err'>Đã xóa thành công</p>";
28 }
29 else echo "<p align=center class='err'>Không thể xóa dữ liệu</p>";
30 }
31 break;
32 }
33 ?>
34
35 <?
36 if (isset($_POST['ButDel'])) {
37 $cnt=0;
38 foreach ($_POST['chk'] as $id)
39 {
40 $pro=GetCompanyInfo($id);
41 if ($pro)
42 {
43 @$result = mysql_query("delete from avd where id='".$id."'",$con);
44 if ($result) {
45 $cnt++;
46 if (file_exists("../".$pro['image'])) unlink("../".$pro['image']);
47 if (file_exists("../".$pro['image_large'])) unlink("../".$pro['image_large']);
48
49 }
50 }
51 }
52 echo "<p align=center class='err'>Đã xóa ".$cnt." phần tử</p>";
53 }
54 if (isset($_POST['ButGood'])) {
55 $cnt=0;
56 foreach ($_POST['chk'] as $id)
57 {
58 $pro=GetProductInfo($id);
59 if ($pro)
60 {
61 if (CountRecord("pro_good","products_id=".$pro['products_id'])<=0)
62 {
63 $result = mysql_query("insert into pro_good (products_id,language,pro_dateadded) values ('".$pro['products_id']."','".$pro['language']."',SYSDATE())",$con);
64 if ($result) {
65 $cnt++;
66 }
67 }
68 }
69 }
70 echo "<p align=center class='err'>Đã cập nhật ".$cnt." phần tử</p>";
71 }
72 if (isset($_POST['ButNew'])) {
73 $cnt=0;
74 foreach ($_POST['chk'] as $id)
75 {
76 $pro=GetProductInfo($id);
77 if ($pro)
78 {
79 if (CountRecord("pro_new","products_id=".$pro['products_id'])<=0)
80 {
81 $result = mysql_query("insert into pro_new (products_id,language,pro_dateadded) values ('".$pro['products_id']."','".$pro['language']."',SYSDATE())",$con);
82 if ($result) {
83 $cnt++;
84 }
85 }
86 }
87 }
88 echo "<p align=center class='err'>Đã cập nhật ".$cnt." phần tử</p>";
89 }
90 if (isset($_POST['ButSaleoff'])) {
91 $cnt=0;
92 foreach ($_POST['chk'] as $id)
93 {
94 $pro=GetProductInfo($id);
95 if ($pro)
96 {
97 if (CountRecord("pro_saleoff","products_id=".$pro['products_id'])<=0)
98 {
99 $result = mysql_query("insert into pro_saleoff (products_id,language,pro_dateadded) values ('".$pro['products_id']."','".$pro['language']."',SYSDATE())",$con);
100 if ($result) {
101 $cnt++;
102 }
103 }
104 }
105 }
106 echo "<p align=center class='err'>Đã cập nhật ".$cnt." phần tử</p>";
107 }
108
109 if (isset($_POST['trogia'])) {
110 $cnt=0;
111 foreach ($_POST['chk'] as $id)
112 {
113 $pro=GetProductInfo($id);
114 if ($pro)
115 {
116 @$result = mysql_query("update products set trogia=1 where id='".$id."'",$con);
117 if ($result) {
118 $cnt++;
119
120 }
121 }
122 }
123 echo "<p align=center class='err'>Đã thêm ".$cnt." sản phẩm trợ giá</p>";
124 }
125
126 if (isset($_POST['huytrogia'])) {
127 $cnt=0;
128 foreach ($_POST['chk'] as $id)
129 {
130 $pro=GetProductInfo($id);
131 if ($pro)
132 {
133 @$result = mysql_query("update products set trogia=0 where id='".$id."'",$con);
134 if ($result) {
135 $cnt++;
136
137 }
138 }
139 }
140 echo "<p align=center class='err'>Đã hủy ".$cnt." sản phẩm trợ giá</p>";
141 }
142
143
144
145
146
147 ?>
148
149 <?
150 $page = $_GET["page"];
151 $p=0;
152 if ($page!='') $p=$page;
153 $where="1=1";
154 //if ($_REQUEST['status']!='') $where="products_status=".$_REQUEST['status']." ";
155 if ($_REQUEST['cat']!='') $where="company_cat=".$_REQUEST['cat'];
156 ?>
157 <?
158 function taotrang($total,$link,$nitem,$itemcurrent,$step=10)
159 { global $con;
160 $ret="";
161
162 $param="";
163 $pages=count_page($total,$nitem);
164 if ($itemcurrent>0) $ret.='<a title="Đầu tiên" href="'.$link.'0" class="lslink">[<]</a> ';
165 if ($itemcurrent>1) $ret.='<a title="Về trước" href="'.$link.($itemcurrent-1).'" class="lslink">[<<]</a> ';
166 $from=($itemcurrent-$step>0?$itemcurrent-$step:0);
167 $to=($itemcurrent+$step<$pages?$itemcurrent+$step:$pages);
168 for ($i=$from;$i<$to;$i++)
169 {
170 if ($i!=$itemcurrent) $ret.='<a href="'.$link.$i.'" class="lslink">'.($i+1).'</a> ';
171 else $ret.='<b>'.($i+1).'</b> ';
172 }
173 if (($itemcurrent<$pages-2) && ($pages>1)) $ret.='<a title="Tiếp theo" href="'.$link.($itemcurrent+1).'">[>>]</a> ';
174 if ($itemcurrent<$pages-1) $ret.='<a title="Cuối cùng" href="'.$link.($pages-1).'">[>]</a>';
175 return $ret;
176 }
177
178 $pageindex=taotrang(CountRecord("company",$where),"./?act=company&cat=".$_REQUEST['cat']."&page=",$MAXPAGE,$page);
179 ?>
180
181 <table cellspacing="0" cellpadding="0" width="100%">
182 <? if ($_REQUEST['code']==1) echo '<tr><td colspan="2" align="center" class="err">Đã cập nhật thành công</td></tr>'; ?>
183 <tr>
184 <td class="smallfont">Trang : <? echo $pageindex; ?></td>
185 <td height="30" align="right" class="smallfont">
186 <select size="1" name="ddCat" class="smallfont">
187 <?
188 $ms=GetListCompany(0);
189 echo '<option value="">[Tất cả]</option>';
190 foreach ($ms as $m)
191 if ($m[0]!=$_REQUEST['cat'])
192 echo '<option value="'.$m[0].'">'.$m[1].'</option>';
193 else
194 echo '<option selected value="'.$m[0].'">'.$m[1].'</option>';
195 ?>
196 </select>
197 <input type="button" value="Chuyển" class="button" onclick="window.location='./?act=company&cat='+ddCat.value">
198 </td>
199 </tr>
200 </table>
201 </td>
202 </tr>
203 </table>
204 <table cellspacing="0" cellpadding="0">
205 <tr>
206 <td class="smallfont">Tìm kiếm: </td>
207 <td class="smallfont">
208 <!-- begin tim kiem-->
209 <form name="form_select" method="GET" action="./">
210 <table id="timkiem_home" border="0" id="table21" cellspacing="0" cellpadding="0">
211 <tr>
212 <td style="padding-left:4px;">
213 <select size="1" name="cat_id">
214 <?
215 $ms=GetListCompany(0);
216 echo '<option value="">[Tất cả]</option>';
217 foreach ($ms as $m)
218 if ($m[0]!=$_REQUEST['cat'])
219 echo '<option value="'.$m[0].'">'.$m[1].'</option>';
220 else
221 echo '<option selected value="'.$m[0].'">'.$m[1].'</option>';
222 ?>
223 </select>
224 </td>
225 <td style="padding-left:0px">
226 <input name="keywords" type="text" id="input_timkiem" value="">
227 </td>
228 <td>
229 <input type="hidden" name="act" value="search_company">
230 <input type="hidden" name="company" value="search_company">
231 <input id="button_search" type="submit" name="search" value="Tìm">
232 </td>
233 </tr>
234 </table>
235 </form>
236 <!-- end tim kiem -->
237 </td>
238 </tr>
239 </table>
240 <form method="POST" name="frmList" action="index.php">
241 <input type=hidden name="page" value="<? echo $page; ?>">
242 <table border="1" cellpadding="2" style="border-collapse: collapse" bordercolor="#C9C9C9" width="100%" id="AutoNumber1">
243 <tr>
244 <td align=center nowrap class="title"><input type="checkbox" name="chkall" onclick="chkallClick(this);"></td>
245 <td colspan="2" nowrap class="title"> </td>
246 <td align="center" nowrap class="title"><b>ID</b></td>
247 <td align="center" nowrap class="title"><b>Tên </b></td>
248 <td align="center" nowrap class="title"><b>Người đăng</b></td>
249 <td align="center" nowrap class="title"><b>Danh mục hệ thống</b></td>
250 <td align="center" nowrap class="title"><b>Nơi đăng</b></td>
251 <td align="center" nowrap class="title"><b>Ngày đăng</b></td>
252
253 </tr>
254
255 <?php
256 $sql="select * from company where $where order by id DESC limit ".($p*$MAXPAGE).",".$MAXPAGE;
257 $result=mysql_query($sql,$con);
258 $i=0;
259 while(($row=mysql_fetch_array($result)))
260 {
261 $i++;
262 if ($i%2) $color="#d5d5d5"; else $color="#e5e5e5";
263 $catinfo=GetCatCompanyInfo($row['company_cat']);
264 $cityinfo=GetCityInfo($row['city']);
265 ?>
266
267 <tr>
268 <td align="center" bgcolor="<? echo $color; ?>" class="smallfont">
269 <input type="checkbox" name="chk[]" value="<? echo $row['id']; ?>"></td>
270 <td align="center" bgcolor="<? echo $color; ?>" class="smallfont">
271 <a href="./?act=job_m&cat=<? echo $_REQUEST['cat']; ?>&status=<? echo $_REQUEST['status']; ?>&id=<? echo $row['id']; ?>&page=<? echo $page?>">Sửa</a></td>
272 <td align="center" bgcolor="<? echo $color; ?>" class="smallfont">
273 <a onclick="return confirm('Bạn có chắc chắn muốn xoá ?');" href="./?act=job&action=del&cat=<? echo $_REQUEST['cat']; ?>&status=<? echo $_REQUEST['status']; ?>&id=<? echo $row['id']; ?>">Xoá</a></td>
274 <td bgcolor="<? echo $color; ?>" align="left" align="left" class="smallfont"><? echo $row['id']; ?> </td>
275 <td bgcolor="<? echo $color; ?>" class="smallfont"><a href="../?home=company&act=views&id=<? echo $row['id']; ?>" target="_blank"><? echo $row['name']; ?></a></td>
276 <td bgcolor="<? echo $color; ?>" class="smallfont"><? echo $row['user']; ?> </td>
277 <td bgcolor="<? echo $color; ?>" class="smallfont"><? echo $catinfo['name']; ?> </td>
278 <td bgcolor="<? echo $color; ?>" class="smallfont"><?if($row['city']=='0'){?>TOÀN QUỐC<?}else{?><? echo $cityinfo['name']; ?><?}?> </td>
279 <td bgcolor="<? echo $color; ?>" class="smallfont"><? echo $row['date']; ?> </td>
280
281 </tr>
282 <?
283 }
284 ?>
285 </table>
286 <input type="hidden" name="act" value="company"><table border="0" width="100%" cellspacing="0" cellpadding="0" id="table1">
287 <tr>
288 <td>
289 <input type="submit" value="Xóa Chọn" name="ButDel" onclick="return confirm('Bạn có chắc chắn muốn xoá ?');" class="button"></td>
290 <td align="right">
291 </td>
292 <td align="right">
293
294 </td>
295
296
297 </tr>
298 </table>
299 </form>
300 <script language="JavaScript">
301 function chkallClick(o) {
302 var form = document.frmList;
303 for (var i = 0; i < form.elements.length; i++) {
304 if (form.elements[i].type == "checkbox" && form.elements[i].name!="chkall") {
305 form.elements[i].checked = document.frmList.chkall.checked;
306 }
307 }
308 }
309 </script>